<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>LASAR: BluetoothChatService.ConnectThread Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="Logo HDPI [329x72].png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">LASAR
   &#160;<span id="projectnumber">v. 1.0</span>
   </div>
   <div id="projectbrief">Light Automation System Accessed Remotely</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example.html">example</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example_1_1android.html">android</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1example_1_1android_1_1_bluetooth_chat.html">BluetoothChat</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html">BluetoothChatService</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">BluetoothChatService.ConnectThread Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for BluetoothChatService.ConnectThread:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread__coll__graph.png" border="0" usemap="#_bluetooth_chat_service_8_connect_thread_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a44953b58b3e56284605861cd8dc6c1b6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a44953b58b3e56284605861cd8dc6c1b6">ConnectThread</a> (BluetoothDevice device)</td></tr>
<tr class="memitem:a13a43e6d814de94978c515cb084873b1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1">run</a> ()</td></tr>
<tr class="memitem:a02d5fa6b14e221f3012a794b905be166"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166">cancel</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a671e27e36a6f6af999136e22c3f98006"><td class="memItemLeft" align="right" valign="top">final BluetoothSocket&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a671e27e36a6f6af999136e22c3f98006">mmSocket</a></td></tr>
<tr class="memitem:ad27e43ebcc6efac79c350009f29964fc"><td class="memItemLeft" align="right" valign="top">final BluetoothDevice&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#ad27e43ebcc6efac79c350009f29964fc">mmDevice</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This thread runs while attempting to make an outgoing connection with a device. It runs straight through; the connection either succeeds or fails. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a44953b58b3e56284605861cd8dc6c1b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html">ConnectThread</a> </td>
          <td>(</td>
          <td class="paramtype">BluetoothDevice&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a02d5fa6b14e221f3012a794b905be166"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166">cancel</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a02d5fa6b14e221f3012a794b905be166_icgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a02d5fa6b14e221f3012a794b905be166_icgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a02d5fa6b14e221f3012a794b905be166_icgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a02d5fa6b14e221f3012a794b905be166_icgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ae3e5313b36e6f003857174584df1753e" title="com.example.android.BluetoothChat.BluetoothChatService.start" alt="" coords="131,5,522,32"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a210e75ad8ad1a78004ee6fe643acd0aa" title="com.example.android.BluetoothChat.BluetoothChatService.connect" alt="" coords="121,107,532,133"/><area shape="rect" id="node11" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a7684309f45e8b4bbbe3478b7c6b7d786" title="com.example.android.BluetoothChat.BluetoothChatService.connected" alt="" coords="115,56,539,83"/><area shape="rect" id="node16" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a4bcef6dec76484d625984ace718f36fd" title="com.example.android.BluetoothChat.BluetoothChatService.stop" alt="" coords="132,183,521,209"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1" title="run" alt="" coords="800,5,840,32"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a1f166dbb18c9970efc1bc01b9b2e5c54" title="Changes to Room Control screen. The MAC addresses are hard&#45;coded to appropriately connect to the RN&#45;4..." alt="" coords="639,107,1001,133"/><area shape="rect" id="node13" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a13a43e6d814de94978c515cb084873b1" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.run" alt="" coords="587,56,1053,83"/><area shape="rect" id="node18" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a8a744b43949a3939f448facad211e3d2" title="com.example.android.BluetoothChat.LASARControl.onDestroy" alt="" coords="629,157,1011,184"/><area shape="rect" id="node20" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#acb776333595cb036bf935852041cb088" title="com.example.android.BluetoothChat.LASARControl.onBackPressed" alt="" coords="612,208,1028,235"/><area shape="rect" id="node22" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_l_a_s_a_r_control.html#a3d586a7ab265876564fc5c288cb38e0d" title="Parses incoming stream. Finds Dimness and Blinds value on startup. Finds Frequency if prompted..." alt="" coords="639,259,1001,285"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a13a43e6d814de94978c515cb084873b1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a13a43e6d814de94978c515cb084873b1">run</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a13a43e6d814de94978c515cb084873b1_cgraph.png" border="0" usemap="#classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a13a43e6d814de94978c515cb084873b1_cgraph" alt=""/></div>
<map name="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a13a43e6d814de94978c515cb084873b1_cgraph" id="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread_a13a43e6d814de94978c515cb084873b1_cgraph">
<area shape="rect" id="node3" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a784e1d9992765b96eb29e9ba63ad8902" title="com.example.android.BluetoothChat.BluetoothChatService.connectionFailed" alt="" coords="94,5,557,32"/><area shape="rect" id="node7" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#ae3e5313b36e6f003857174584df1753e" title="com.example.android.BluetoothChat.BluetoothChatService.start" alt="" coords="130,56,521,83"/><area shape="rect" id="node14" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a7684309f45e8b4bbbe3478b7c6b7d786" title="com.example.android.BluetoothChat.BluetoothChatService.connected" alt="" coords="113,107,537,133"/><area shape="rect" id="node5" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service.html#a09b77b92fc6c880860a3dbf4ab21e36c" title="com.example.android.BluetoothChat.BluetoothChatService.setState" alt="" coords="652,5,1065,32"/><area shape="rect" id="node9" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a02d5fa6b14e221f3012a794b905be166" title="cancel" alt="" coords="829,56,889,83"/><area shape="rect" id="node11" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connected_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.ConnectedThread.cancel" alt="" coords="605,107,1112,133"/><area shape="rect" id="node18" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_accept_thread.html#a02d5fa6b14e221f3012a794b905be166" title="com.example.android.BluetoothChat.BluetoothChatService.AcceptThread.cancel" alt="" coords="615,157,1102,184"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="ad27e43ebcc6efac79c350009f29964fc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final BluetoothDevice <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#ad27e43ebcc6efac79c350009f29964fc">mmDevice</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a671e27e36a6f6af999136e22c3f98006"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">final BluetoothSocket <a class="el" href="classcom_1_1example_1_1android_1_1_bluetooth_chat_1_1_bluetooth_chat_service_1_1_connect_thread.html#a671e27e36a6f6af999136e22c3f98006">mmSocket</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Code/LASAR/Android/LASAR Control/src/com/example/android/BluetoothChat/<a class="el" href="_bluetooth_chat_service_8java.html">BluetoothChatService.java</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 23 2012 14:43:59 for LASAR by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
